ActionScript 2.0 Language Details
Table of Contents
- ActionScript Overview
- Introduction to ActionScript 2.0
- ActionScript 2.0 Language Details
- Migrating from ActionScript 1.0 to ActionScript 2.0
- Object-Oriented Programming
ActionScript 2.0 introduces several new programming keywords and concepts, including classes, inheritance, and interfaces. These concepts comprise what is commonly known as object-oriented programming (see Object-Oriented Programming).
Classes you create in ActionScript must be stored in separate ActionScript (AS) files; you can't create classes in a Flash (FLA) frame or button script. Some important points about class files:
- Only one class can be defined per AS class file.
- The name of the file that contains the class must match the class name.
- ActionScript class files must be located in a folder where the Flash compiler looks for classes.
- You can combine several classes in a folder to create a package.
If you're new to creating classes and object-oriented programming, try following the steps in Using Classes: A Simple Example. For more information about ActionScript 2.0, read An ActionScript 2.0 Primer for ActionScript 1.0 Folk: Part One and An ActionScript 2.0 Primer for ActionScript 1.0 Folk: Part Two. Also see:
Documentation
Tutorials and Samples
Flash-MX.com
Article: ActionScript 2.0 Primer for ActionScript 1.0 Folk
Find out about the benefits you'll find in ActionScript 2.0 such
as strict typing, function return types, and more in this article
by Joey Lott.
Flash-MX.com
Article: ActionScript 2.0 Class Structure
Get into the way Flash code works with class and inheritance in this
Joey Lott article.
Overview
of ActionScript 2.0 (Creating 3D Classes)
Find out what's new in ActionScript 2.0 as you create 3D classes.
Examining
the ActionScript 2.0 Language (Component Architecture)
Read about the new features in ActionScript 2.0 in this article about
the new code and component architecture.